<?php

namespace app\admin\model;

use think\Model;
use think\model\relation\BelongsTo;
/**
 * Log
 */
class UserLog extends Model
{
    // 表名
    protected $name = 'user_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}